package com.etc.zmall.service;

import com.etc.entity.Goods;
import com.etc.entity.Shopc;
import com.etc.util.PageData;

/**
 * 
 * <p>
 * Title: GoodsService
 * </p>
 * 
 * <p>
 * Description:
 * </p>
 * 
 * @author knowno
 * 
 * @date 2022年3月2日
 * 
 */
public interface GoodsService {
	/**
	 * 分页查询全部商品+模糊查询
	 * 
	 * @param page
	 * @param pageSize
	 * @param keywords
	 * @return
	 */
	public PageData<Goods> showGoods(int page, int pageSize, String keywords);

	/**
	 * 将商品加入购物车
	 * 
	 * @param shopc
	 * @return
	 */
	public boolean addShopc(Shopc shopc);

	public Goods selShopName(Goods goods, String goodsname);

	/**
	 * 分页查找店铺所有商品
	 * 
	 * @param page
	 * @param pageSize
	 * @param shopid
	 * @return
	 */
	public PageData<Goods> queryGoodsShopid(int page, int pageSize, int shopid);

	public boolean setGoodsState(int id, int state);

	/**
	 * 
	 * <p>
	 * Title: addGoods
	 * </p>
	 * 
	 * <p>
	 * Description:
	 * </p>
	 * 
	 * @param goods
	 * @return
	 * 
	 */
	public boolean addGoods(Goods goods);

	public Goods queryOneGoods(int goodsid);

}
